package com.mdd.front.validate.yangyangLeadingEnterprise;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import java.util.Date;
import java.util.Date;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 课程参数
 * @author LikeAdmin
 */
@Data
@ApiModel("课程更新参数")
public class TAppCourseUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "")
    private Integer id;

    @NotNull(message = "title参数缺失")
    @ApiModelProperty(value = "标题")
    private String title;

    @NotNull(message = "subtitle参数缺失")
    @ApiModelProperty(value = "副标题")
    private String subtitle;

    @NotNull(message = "introduce参数缺失")
    @ApiModelProperty(value = "课程文字介绍")
    private String introduce;

    @NotNull(message = "showPic参数缺失")
    @ApiModelProperty(value = "课程展示图片")
    private String showPic;

    @NotNull(message = "freeType参数缺失")
    @ApiModelProperty(value = "是否免费（1：免费；2：付费；）")
    private Integer freeType;

    @NotNull(message = "playCount参数缺失")
    @ApiModelProperty(value = "播放次数")
    private Integer playCount;

}
